package cn.boy.dao;

import cn.boy.domain.Adminstrator;

public interface AdminstratorDao {

	public abstract void add(Adminstrator admin);

	public abstract void delete(String no);

	public abstract void update(Adminstrator admin);


	
	/**
	 * 修改密码
	 * @param no
	 * @param password
	 */
	public abstract void update(String no, String password);

	public abstract String queryAll();

	/**
	 * 根据部门查询管理员,支持模糊查询
	 * @param dormitoryNO
	 * @return
	 */
	public abstract String queryAdminstratorsByDepartment(String department);

	public abstract String query(String no);

	public abstract String query(String no, String password);

}